import { get, post, formData } from "@/api/services/formReq";
/*********************************** 登录注册 ***********************************/
// 用户登录
export const login = params => post("/v1/wx/getUserInfo", params);

// 用户账号密码登录
export const userLogin = params => post("/v1/user/login/in", params);

//模拟登录
export const userSimulateLogin = params => post(`/v1/get/ciphertext?Ciphertexts=${params}`);

// 用户详情信息
export const getUserInfo = params => post("/v1/wx/getTokenUserInfo", params);

// 扫码用户角色
export const addUser = params => post("/v1/admin/user/roleInfo", params);

// 用户登出
export const logout = params => post("/v1/user/logout", params);

// 用户登出
export const getPicBaseUrl = params => post("/pic/baseUrl", params);


/*********************************** 数据大盘***********************************/
// 头部数据统计
export const getDashboardHeader = params => post("/v3/backend/dashboard/headCounts", params);

// 平台流水分析
export const getDashboardPlatform = params => post("/v3/backend/dashboard/platformCounts", params);

// 用户数据分析
export const getDashboardUserData = params => post("/v3/backend/dashboard/userCounts", params);

// 订单数据分析
export const getDashboardOrderData = params => post("/v3/backend/dashboard/orderCounts", params);

// 业务收益分析
export const getDashboardBusiness = params => post("/v3/backend/dashboard/businessCounts", params);

// 用户增长情况
export const getDashboardUserGrowth = params => post("/v3/backend/dashboard/userGrowth", params);

// 平台流水增长情况
export const getDashboardPlatformGrowth = params => post("/v3/backend/dashboard/platformGrowth", params);

// 销售订单增长情况
export const getDashboardOrderGrowth = params => post("/v3/backend/dashboard/salesOrderCounts", params);

// 平台复购情况
export const getDashboardPlatformRepurchase = params => post("/v3/backend/dashboard/platformRepurchase", params);

/*********************************** 公共接口 ***********************************/

// 获取医生和医生ID
export const getDocterSelects = params => post("/v1/backend/users/selects", { ...params, userType: 1 });

// 获取助理和助理ID
export const getAssistantSelects = params => post("/v1/backend/users/selects", { ...params, userType: 3 });

// 获取患者和患者ID
export const getPatientSelects = params => post("/v1/backend/users/selects", { ...params, userType: 2 });

/*********************************** 协议管理 ***********************************/

// 协议tabs列表
export const getAgreemenetList = params => post("/v1/backend/agreemenet/lists", params);

// 协议详情
export const getAgreemenet = params => post("/v1/backend/agreemenet/read", params);

//  设置协议详情
export const setAgreemenet = params => post("/v1/backend/agreemenet/change", params);

/*********************************** 用户中心  用户管理 ***********************************/

// 用户管理 用户列表
export const getUsers = params => post("/v1/backend/users/lists", params);

// 用户管理 修改用户信息
export const editUserInfo = params => post("/v1/backend/users/change", params);

/*********************************** 用户中心 医生管理 ***********************************/

// 医生管理 生命周期Timeline
export const getTimeline = params => post("/v1/backend/sys/timeline", params);

// 医生管理 医生列表
export const getDocterList = params => post("/v1/backend/doctor/lists", params);

// 医生管理 医生切换状态
export const changeDocterStatus = params => post("/v1/backend/users/change_status", params);

// 医生管理 医生注销
export const destoryDocter = params => post("/v1/backend/users/destory", params);

// 医生管理 医生头部详情
export const getDoctorDetail = params => post("/v1/backend/doctor/detail/header", params);

// 医生管理 医生订单列表
export const getDoctorOrderList = params => post("/v1/backend/doctor/detail/order_lists", params);

// 医生管理 医生服务列表
export const getDoctorServiceList = params => post("/v1/backend/doctor/detail/service_lists", params);

// 医生管理 编辑服务信息
export const editDoctorService = params => post("/v1/backend/doctor/detail/service_change", params);

// 医生管理 医生助理列表
export const getDoctorAssistantList = params => post("/v1/backend/doctor/detail/assistant_lists", params);

// 医生管理 删除医生助理
export const delDoctorAssistant = params => post("/v1/backend/doctor/delete_assistant", params);

// 医生管理 医生关联的随访列表
export const getDoctorFollowupList = params => post("/v1/backend/doctor/detail/followup_lists", params);

// 医生管理 医生的患者列表
export const getDoctorPatientList = params => post("/v1/backend/doctor/detail/patient_lists", params);

// 医生管理 绑定患者
export const doctorBuildPatient = params => post("/v1/backend/patients/build_doctor", params);

/*********************************** 用户中心 助理管理 ***********************************/

// 用户管理 助理列表
export const getAssistantList = params => post("/v1/backend/assistant/lists", params);

// 医生管理 助理切换状态
export const changeAssistantStatus = params => post("/v1/backend/users/change_status", params);

// 用户管理 助理详情
export const getAssistantDetail = params => post("/v1/backend/assistant/detail", params);

// 用户管理 助理归属绑定
export const bindAttribution = params => post("/v1/backend/assistant/jurisdiction", params);

// 用户管理 归属列表
export const getUnitList = params => post('/v1/backend/objects/selects', params)

// 用户管理 助理医生绑定
export const bindDocter = params => post("/v1/backend/assistant/build_doctor", params);

// 用户管理 助理绑定的医生列表
export const bindDocterList = params => post("/v1/backend/assistant/build_doctor_lists", params);

// 用户管理 助理推销记录
export const getAssistantShare = params => post("/v1/backend/assistant/share_push_orders", params);

/*********************************** 用户中心 患者管理 ***********************************/

// 患者管理 患者列表
export const getPatientList = params => post("/v1/backend/patients/lists", params);

// 医生管理 患者切换状态
export const changePatientStatus = params => post("/v1/backend/users/change_status", params);

// 患者管理 患者详情
export const getPatientDetail = params => post('/v1/backend/patients/details', params);

// 患者管理 患者病例列表
export const getMedialList = params => post("/v1/backend/patients/medial_lists", params);

// 患者管理 患者病例详情
export const getMedialDetail = params => post("/v1/backend/patients/medial_detail", params);

// 患者管理 修改患者病例
export const editMedial = params => post("/v1/backend/patients/medial_change", params);

//  修改健康档案
export const editHealthfile = params => post("/v1/backend/patients/healthfile_change", params);

// 患者管理 患者管理计划列表
export const getManageplanList = params => post("/v1/backend/patients/manageplan_lists", params);

// 患者管理 患者管理计划详情
export const getManageplanDetail = params => post("/v1/backend/patients/manageplan_detail", params);

// 患者管理 修改患者管理计划
export const editManageplan = params => post("/v1/backend/patients/manageplan_change", params);

// 患者管理  患者管理计划打卡日记
export const managePlanPunchList = params => post("/v1/backend/patients/managePlan/punch/lists", params);

// 患者管理   修改患者管理计划打卡日记
export const editManagePlanPunch = params => post("/v1/backend/patients/managePlan/punch/change", params);

// 患者管理 患者随访列表
export const getFollowupList = params => post("/v1/backend/patients/followup_lists", params);

// 患者管理 患者随访详情修改
export const editFollowupDetail = params => post("/v1/backend/patients/followup_info_change", params);

// 患者管理 患者随访计划列表
export const followupPlanList = params => post("/v1/backend/patients/followup_plan_detail", params);

// 患者管理 患者随访计划修改
export const editFollowupPlan = params => post("/v1/backend/patients/followup_change", params);

// 患者管理  患者随访打卡日记
export const followupPunchList = params => post("/v1/backend/patients/followUp/punch/lists", params);

// 患者管理  修改随访打卡日记
export const editFollowupPunch = params => post("/v1/backend/patients/followUp/punch/change", params);

/*********************************** 订单管理  ***********************************/

// 订单管理 订单列表接口
export const getOrderList = params => post("/v1/backend/order/lists", params);

// 订单管理 订单详情
export const getOrderDetail = params => post("/v1/backend/order/detail", params);

// 订单管理 订单导出
export const exportOrder = params => post("/v1/backend/order/exports", params);

// 订单管理 订单跟进
export const addOrderProgress = params => post("/v1/backend/order/push", params);

// 订单管理 订单预定
export const orderBooking = params => post("/v1/backend/order/detail/booking", params);

// 订单管理 订单退款
export const orderRefund = params => post("/v1/backend/order/refund", params);

// 订单管理 订单跟进
export const orderTimeline = params => post("/v1/backend/order/timeline", params);

// 订单管理 订单获取物流单号
export const trackOrdersAll = params => post('/v2/backend/orders/trackOrdersAll', params)

// 订单管理  获取物流流转信息
export const trackOrdersFinds = params => post('/v2/backend/orders/trackOrdersFinds', params)

// 订单管理   物流发货
export const trackOrdersSend = params => post('/v2/backend/orders/trackOrdersSend', params)

// 订单管理   手动绑定物流单号
export const trackOrdersCreate = params => post('/v2/backend/orders/trackOrdersCreate', params)

// 订单管理   手动绑定物流单号
export const trackOrdersDelete = params => post('/v2/backend/orders/trackOrdersDelete', params)

// 订单管理   订单修改默认物流地址
export const changeOrderAddress = params => post('/v2/backend/orders/changeOrderAddress', params)

/*********************************** 产品管理  ***********************************/

// 医生审核 医生审核列表
export const getDoctorReviewList = params => post("/v1/backend/examine/doctor/lists", params);

// 医生审核 医生审核操作
export const setDoctorReview = params => post("/v1/backend/examine/doctor/worker", params);

/*********************************** 产品管理 轮播管理 ***********************************/

// 轮播管理 轮播列表
export const getBannerList = params => post("/v1/backend/banner/lists", params);

// 轮播管理 创建Banner
export const createBanner = params => post("/v1/backend/banner/create", params);

// 轮播管理 切换Banner状态
export const changeBannerStatus = params => post("/v1/backend/banner/changeStatus", params);

// 轮播管理 修改Banner
export const editBanner = params => post("/v1/backend/banner/change", params);

// 轮播管理 Banner详情
export const bannerDetail = params => post("/v1/backend/banner/detail", params);

// 轮播管理 删除Banner
export const deleteBanner = params => post("/v1/backend/banner/delete", params);

/*********************************** 产品管理 医院管理 ***********************************/

// 医院管理 医院列表
export const getHospitalList = params => post("/v1/backend/hospital/lists", params);

// 医院管理 创建医院
export const createHospital = params => post("/v1/backend/hospital/add", params);

// 医院管理 修改医院
export const editHospital = params => post("/v1/backend/hospital/change", params);

// 医院管理 医院详情
export const hospitalDetail = params => post("/v1/backend/hospital/detail", params);

// 医院管理 删除医院
export const deleteHospital = params => post("/v1/backend/hospital/delete", params);

/*********************************** 产品管理 医生擅长领域管理 ***********************************/

// 医生擅长领域管理 列表
export const getDoctorTagList = params => post("/v1/backend/doctor/tags/lists", params);

// 医生擅长领域管理 修改
export const editDoctorTag = params => post("/v1/backend/doctor/tags/change", params);

// 医生擅长领域管理 新增
export const addDoctorTag = params => post("/v1/backend/doctor/tags/add", params);

/*********************************** 产品管理 医院级别管理 ***********************************/

// 医院级别管理 医院级别列表
export const getHospitalLevelList = params => post("/v1/backend/hospital/level/lists", params);

// 医院级别管理 新增医院级别
export const addHospitalLevel = params => post("/v1/backend/hospital/level/add", params);

// 医院级别管理 修改医院级别
export const editHospitalLevel = params => post("/v1/backend/hospital/level/change", params);

// 医院级别管理 删除医院级别
export const deleteHospitalLevel = params => post("/v1/backend/hospital/level/delete", params);

/*********************************** 产品管理 助理归属公司 ***********************************/

// 助理归属公司 助理归属公司列表
export const getCompanyList = params => post("/v1/backend/company/lists", params);

// 助理归属公司 创建助理归属公司
export const createCompany = params => post("/v1/backend/company/add", params);

// 助理归属公司 修改助理归属公司
export const editCompany = params => post("/v1/backend/company/change", params);

// 助理归属公司 切换归属公司状态
export const changeCompanyStatus = params => post("/v1/backend/company/changeStatus", params);

// 助理归属公司 删除归属公司状态
export const deleteCompany = params => post("/v1/backend/company/delete", params);

/*********************************** 产品管理 赠送服务设置 ***********************************/

// 赠送服务设置 获取赠送服务列表
export const getGiftServiceList = params => post("/v1/backend/present/patient/service/lists", params);

// 赠送服务设置 新增赠送服务
export const addGiftService = params => post("/v1/backend/present/patient/service/add", params);

// 赠送服务设置 医生服务下拉
export const docterServiceSelects = params => post('/v1/backend/service/selects', params)

// 赠送服务设置 切换赠送服务状态
export const changeGiftServiceStatus = params => post("/v1/backend/present/patient/service/changeStatus", params);

// 赠送服务设置 删除赠送服务
export const deleteGiftService = params => post("/v1/backend/present/patient/service/delete", params);

/*********************************** 产品管理 医生全局服务管理 ***********************************/

// 医生全局服务管理 服务列表
export const docterServiceList = params => post('/v1/backend/doctor/service/lists', params)

// 医生全局服务管理 创建服务
export const createDocterService = params => post('/v1/backend/doctor/service/create', params)

// 医生全局服务管理 修改服务
export const editDocterService = params => post('/v1/backend/doctor/service/change', params)

// 医生全局服务管理 删除服务
export const delDocterService = params => post('/v1/backend/doctor/service/delete', params)

/*********************************** 产品管理 诊断管理 ***********************************/

// 诊断管理 诊断列表
export const getDiagnosisList = params => post('/v2/backend/diagnosis/lists', params)

// 诊断管理 创建诊断
export const createDiagnosis = params => post('/v2/backend/diagnosis/create', params)

// 诊断管理 修改诊断
export const editDiagnosis = params => post('/v2/backend/diagnosis/change', params)

// 诊断管理 切换诊断状态
export const changeDiagnosisStatus = params => post("/v2/backend/diagnosis/changeStatus", params);

// 诊断管理 删除诊断
export const delDiagnosis = params => post('/v2/backend/diagnosis/delete', params)

/*********************************** 产品管理 商品分类管理 ***********************************/

// 商品分类管理 分类列表
export const getGoodsClassList = params => post('/v2/backend/goodsType/lists', params)

// 商品分类管理 创建分类
export const createGoodsClass = params => post('/v2/backend/goodsType/create', params)

// 商品分类管理 修改分类
export const editGoodsClass = params => post('/v2/backend/goodsType/change', params)

// 商品分类管理 切换分类状态
export const changeGoodsClassStatus = params => post("/v2/backend/goodsType/changeStatus", params);

// 商品分类管理 删除分类
export const delGoodsClass = params => post('/v2/backend/goodsType/delete', params)

/*********************************** 产品管理 商品标签管理 ***********************************/

// 商品标签管理 服务列表
export const getGoodsTagsList = params => post('/v2/backend/goodsTags/lists', params)

// 商品标签管理 创建标签
export const createGoodsTags = params => post('/v2/backend/goodsTags/create', params)

// 商品标签管理 修改标签
export const editGoodsTags = params => post('/v2/backend/goodsTags/change', params)

// 商品标签管理 切换标签状态
export const changeGoodsTagsStatus = params => post("/v2/backend/goodsTags/changeStatus", params);

// 商品标签管理 删除标签
export const delGoodsTags = params => post('/v2/backend/goodsTags/delete', params)

/*********************************** 产品管理 心情语录管理 ***********************************/

// 心情语录管理 列表
export const getMoodList = params => post('/v3/backend/mood/lists', params)

// 心情语录管理 创建
export const createMood = params => post('/v3/backend/mood/create', params)

// 心情语录管理 切换状态
export const changeMoodStatus = params => post('/v3/backend/mood/changeStatus', params)

// 心情语录管理 修改
export const editMood = params => post('/v3/backend/mood/change', params)

// 心情语录管理 删除
export const deleteMood = params => post('/v3/backend/mood/delete', params)
/*********************************** 审批组管理 ***********************************/

//创建审批组 
export const createGroups = params => post('/v1/dco/create', params)
//列表查询
export const getGroupsList = params => post("/v1/dco/list", params);
//删除列表行数据
export const delGroupsList = params => post("/v1/dco/delete", params);
/*********************************** 后台管理 功能管理 ***********************************/

// 功能管理列表
export const getFunList = params => post("/v1/jurisdiction/function/queryLists", params);

// 删除功能
export const deleteFun = params => post("/v1/jurisdiction/function/delete", params);

// 创建功能
export const createFun = params => post("/v1/jurisdiction/function/create", params);

// 修改功能
export const updateFun = params => post("/v1/jurisdiction/function/update", params);

// 状态切换
export const changeFunStatus = params => post("/v1/jurisdiction/function/changeStatus", params);

/*********************************** 后台管理 角色管理 ***********************************/

// 角色管理列表
export const getRoleList = params => get("/v1/jurisdiction/role/queryLists", params);

// 角色管理列表
export const getRoleInfo = params => get("/v1/jurisdiction/role/getInfo", params);

// 删除功能
export const deleteRole = params => post("/v1/jurisdiction/role/delete", params);

// 创建功能
export const createRole = params => post("/v1/jurisdiction/role/create", params);

// 修改功能
export const updateRole = params => post("/v1/jurisdiction/role/update", params);

// 状态切换
export const changeRoleStatus = params => post("/v1/jurisdiction/role/changeStatus", params);

// 信息查询整体列表
export const getAllFunList = params => post("/v1/jurisdiction/function/getLists", params);

/*********************************** 后台管理 用户管理 ***********************************/

// 扫码用户列表
export const getUserList = params => post("/v1/admin/user/queryLists", params);

// 切换用户状态、删除用户
export const changeAndDeleteUser = params => post("/v1/admin/user/changeAndDelete", params);

//设置用户角色
export const setUserRole = params => post("/v1/admin/user/setRoles", params);
//新增用户
export const createUser = params => post("/v1/backend/user/create", params);

// 角色下拉列表
export const getAllRoleList = params => post("/v1/jurisdiction/role/all", params);

// 设置角色管理状态
export const setAdminStatus = params => post("/v1/backend/manage/set", params);

//  项目下拉列表
export const getAllProjectList = params => post("/v1/backend/config/project/lists", params);


/*********************************** 审核管理 ***********************************/

//  健康档案列表
export const getHealthfileList = params => post("/v1/backend/patients/healthfile_lists", params);

//  健康档案详情
export const getHealthfileDetail = params => post("/v1/backend/patients/healthfile_detail", params);

//  修改审核健康档案
export const editHealthfileDetail = params => post("/v1/backend/examine/heathfile/change_status", params);

//  医生审核列表
export const getDocterReviewList = params => post("/v1/backend/examine/doctor/lists", params);

//  医生审核详情
export const getDocterReviewDetail = params => post("/v1/backend/examine/doctor/detail", params);

//  医生审核操作
export const setDocterReview = params => post("/v1/backend/examine/doctor/worker", params);

//  解除医患关系申请列表
export const getRelationsReleaseList = params => post("/v1/backend/examine/termination_relation", params);

//  解除医患关系申请（解除、驳回）
export const setRelationsRelease = params => post("/v1/backend/examine/termination_relation/worker", params);

// 待提现审核列表
export const getWithdrawList = params => post("/v1/backend/examine/withdraw/lists", params);

// 处理提现申请
export const setWithdraw = params => post("/v1/backend/examine/withdraw/worker", params);

// 处方审核列表
export const getPrescriptionlist = params => post("/v2/backend/prescription/lists", params);

// 操作审核
export const rpAction = params => post("/v2/backend/prescription/operation", params);

// 审核详情
export const rpDetail = params => post("/v2/backend/prescription/detail", params);

// BD审核
export const bdAgentReview = params => post("/v3/backend/bdAgent/operate", params);

// BD审核
export const getBdReviewList = params => post("/v3/backend/bdAgent/lists", params);

/***********************************   商品管理  ***********************************/

// 获取商品列表申请
export const getGoodsList = params => post("/v2/backend/goods/lists", params);

// 商品上下架
export const changeGoodsStatus = params => post("/v2/backend/goods/changeStatus", params);

// 获取商品详情
export const getGoodsDetail = params => post("/v2/backend/goods/detail", params)

// 创建商品
export const createGoods = params => post("/v2/backend/goods/create", params)

// 修改商品
export const editGoods = params => post("/v2/backend/goods/change", params)

// 删除商品
export const delGoods = params => post("/v2/backend/goods/delete", params)

// 商品tag下拉
export const getGoodsTagsSelect = params => post("/v2/backend/goodsTags/selectValues", params)

// 商品分类下拉
export const getGoodsTypeSelect = params => post("/v2/backend/goodsType/selectValues", params)

/************* 量表题目管理 *************/
// 创建题目
export const createScaleTopic = params => post("/v3/backend/scale/topic/create", params)

// 获取题目列表
export const getScaleTopicList = params => post("/v3/backend/scale/topic/lists", params)

// 编辑题目
export const editScaleTopic = params => post("/v3/backend/scale/topic/change", params)

// 删除题目
export const deleteTopic = params => post("/v3/backend/scale/topic/delete", params)

/************* 量表选项管理 *************/

// 创建量表选项
export const createAnswer = params => post("/v3/backend/scale/answer/create", params)

// 量表选项列表
export const getAnswerList = params => post("/v3/backend/scale/answer/lists", params)

// 编辑量表选项
export const editAnswer = params => post("/v3/backend/scale/answer/change", params)

// 删除量表选项
export const deleteAnswer = params => post("/v3/backend/scale/answer/delete", params)

/************* 冥想管理 *************/

//音视频获取列表（冥想）
export const getFilesSelect = params => post("/v3/backend/files/detail", params)

/************* 课程管理 课程章节目录 *************/

// 创建章节
export const createCourseTopic = params => post("/v3/backend/course/topic/create", params)

// 修改章节
export const editCourseTopic = params => post("/v3/backend/course/topic/change", params)

// 获取章节列表
export const getCourseTopicList = params => post("/v3/backend/course/topic/lists", params)

// 删除章节
export const deleteCourseTopic = params => post("/v3/backend/course/topic/delete", params)

/***********************************   科普文章  ***********************************/

//文章列表
export const getNewsList = params => post("/v2/backend/news/lists", params)

//创建文章
export const createNews = params => post("/v2/backend/news/create", params)

//编辑文章  
export const editNews = params => post("/v2/backend/news/change", params)

//文章详情
export const getNewsDetail = params => post("/v2/backend/news/detail", params)

// 文章状态切换
export const changeNewsStatus = params => post("/v2/backend/news/changeStatus", params);

// 文章状态切换
export const delNews = params => post("/v2/backend/news/delete", params);

/***********************************   平台收益  ***********************************/

// 获取平台收益列表
export const getEarningsList = params => post("/v2/backend/platform/revenue/lists", params);

// 平台收益列表导出
export const exportEarnings = params => post("/v2/backend/platform/revenue/exports", params);


/***********************************   消息管理  ***********************************/

// 消息列表
export const getMessageList = params => post("/v3/backend/message/lists", params);

// 创建消息
export const createMessage = params => post("/v3/backend/message/create", params);

// 修改消息
export const editMessage = params => post("/v3/backend/message/change", params);

// 发送消息
export const sendMessage = params => post("/v3/backend/message/send", params);

// 删除消息
export const deleteMessage = params => post("/v3/backend/message/delete", params);

/***********************************   开放平台  ***********************************/
// api授权列表
export const getAuthList = params => post("/v3/backend/authorized/lists", params);

// 创建用户秘钥
export const createAuth = params => post("/v3/backend/authorized/create", params);

// 切换用户秘钥状态
export const changeAuthStatus = params => post("/v3/backend/authorized/changeStatus", params);

// 删除授权
export const deleteAuth = params => post("/v3/backend/authorized/delete", params);

// 用户列表
export const getUsersList = params => post("/v3/backend/saas/userLists", params);

// 用户列表-下拉
export const getUserSelect = params => post("/v3/backend/saas/selectLists", params);

// 修改用户状态
export const changeUserStatus = params => post("/v3/backend/saas/userChangeStatus", params);

// 删除用户
export const deleteUser = params => post("/v3/backend/saas/userDelete", params);

/***********************************   拉新管理 BD管理  ***********************************/

// BD列表
export const getBdAgentList = params => post("/v3/backend/bdAgent/lists", params);

// BD详情
export const getBdAgentDetail = params => post("/v3/backend/bdAgent/info", params);

// 修改BD状态
export const changeBdStatus = params => post("/v3/backend/bdAgent/ben", params);

// BD绑定医生
export const bdBuildDoctor = params => post("/v3/backend/bdAgent/doctor/build", params);

// BD绑定医生列表
export const getBdDoctorList = params => post("/v3/backend/bdAgent/doctor/lists", params);

// 删除BD医生绑定
export const deleteBdDoctor = params => post("/v3/backend/bdAgent/doctor/delete", params);

// BD医生业绩列表
export const getBdAchievementList = params => post("/v3/backend/bdAgent/achievement/lists", params);

// BD数据导出
export const exportsBdAchievement = params => post("/v3/backend/bdAgent/achievement/exports", params);
//权限列表
export const authorityList = params => post("/v1/jurisdiction/authority/list", params);
//权限增加
export const authorityAdd = params => post("/v1/jurisdiction/authority/create", params);
//权限删除
export const authorityDelete = params => post("/v1/jurisdiction/authority/delete", params);
//权限切换状态
export const authorityUpdateState = params => post("/v1/jurisdiction/authority/updateState", params);
//权限修改
export const authorityUpState = params => post("/v1/jurisdiction/authority/update", params);
//权限功能下拉
export const authorityDropDown = params => post(`/v1/function/dropDown?types=${params}`, params);
//权限下拉
export const authorityDrownDrop = params =>post("/v1/jurisdiction/authority/drownDrop", params);

//权限功能查询
export const authorityQuery = params => post("/v1/jurisdiction/authority/query", params);
//角色功能创建
// export const userRolesCreate = params => post("/v1/jurisdiction/rolesubtable/create", params);

